// 首页

import request from '@/utils/request'


// 获取验证码
export const Yanzm = (shijian, time) => {
    return request({
        url: `/jeecg-boot/sys/randomImage/${shijian}?_t=${time}`,
        method: 'get',

    })
}

// 登录
export const Login = (data) => {
    return request({
        url: '/jeecg-boot/sys/login',
        method: 'post',
        data
    })
}

// 获取导航
export const Navigation = (time, token) => {
    return request({
        url: `/jeecg-boot/sys/permission/getUserPermissionByToken?_t=${time}&token=${token}`,
        method: 'get',
    })
}